﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.OpenType.Tables
{
    /// <summary>
    /// 头表
    /// </summary>
    public class HeadTable : Table
    {
        /// <summary>
        /// 主版本号
        /// </summary>
        public ushort MajorVersion { get; set; }
        /// <summary>
        /// 次版本号
        /// </summary>
        public ushort MinorVersion { get; set; }
        /// <summary>
        /// 由字体制造商设置
        /// </summary>
        public Fixed FontRevision { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public uint CheckSumAdjustment { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public uint MagicNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ushort Flags { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ushort UnitsPerEm { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public LONGDATETIME Created { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public LONGDATETIME Modified { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short XMin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short YMin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short XMax { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short YMax { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ushort MacStyle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ushort LowestRecPPEM { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short FontDirectionHint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short IndexToLocFormat { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short GlyphDataFormat { get; set; }
    }
}
